package com.haixee.parkdemo.data_acl.mybatis.service;

import com.haixee.parkdemo.common.feign.auth.AuthRPCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DataAclService {

    @Autowired
    private AuthRPCService authRPCService;

    public void doProcess() {
//        // 可通用代码
//        // 获取规则
//        Byte dataScope = WebContextHolder.getRoleScope();
//        if (dataScope == null || dataScope == 3) {
//            return;
//        }
//
//        Integer searchUid = null;
//        List<Integer> searchJobList = new ArrayList<>();
//        if (dataScope == 1) {
//            searchUid = WebContextHolder.getUid();
//            searchJobList = WebContextHolder.getUnderJobList();
//        }
//
//        if (dataScope == 2) {
//            searchJobList.add(WebContextHolder.getJobId());
//            searchJobList = WebContextHolder.getUnderJobList();
//        }
//
//        DataAclHolder.setOptUid(searchUid);
//        DataAclHolder.setJobList(searchJobList);
    }

}
